import { httpGet, httpPost } from "@/utils/request";

//获取商品列表
export function fetchListSchoolMajor(data) {
    return httpGet({
        url: "/user/collectMajor/listOrganizationUserCollectMajorByOrganizationUserId",
        data: data,
    });
}


//获取招考用户信息页样式
export function fetchUserInfoStyleZkxt(data) {
    return httpGet({
        url: "/user/infoStyle/getUserInfoStyleZkxt",
        data: data,
    });
}


//获取招考用户信息页样式
export function fakeOrganizationUserExamIntel(data) {
    return httpPost({
        url: "/user/examIntel/saveOrganizationUserExamIntel",
        data: data,
    });
}


//获取招考用户信息页样式
export function fetchSchoolEnrollmentlistSchool(data) {
    return httpGet({
        url: "/zkxtSchool/listSchool",
        data: data,
    });
}
//获取招考用户信息页样式
export function fetchSchoolEnrollmentCodeYear(data) {
    return httpGet({
        url: "/schoolEnrollmentCodeYear/listSchoolEnrollmentCodeYear",
        data: data,
    });
}



//获取页面的查询条件
export function fetchQueryCriteriaZkxt(data) {
    return httpGet({
        url: "/queryCriteria/getQueryCriteriaZkxt",
        data: data,
    });
}

//根据学校ID获取学校详情
export function fetchSchoolDetailById(data) {
    return httpGet({
        url: "/zkxtSchool/getSchoolDetailById",
        data: data,
    });
}


//保存收藏学校
export function fakeOrganizationUserCollectSchool(data) {
    return httpPost({
        url: "/user/collectSchool/insertOrganizationUserCollectSchool",
        data: data,
    });
}
//取消保存收藏
export function fakeDeleteOrganizationUserCollectSchoolById(data) {
    return httpPost({
        url: "/user/collectSchool/deleteOrganizationUserCollectSchoolById",
        data: data,
    });
}

//根据学校ID获取分数
export function fetchSchoolEnrollmentCodeYearBySchoolId(data) {
    return httpGet({
        url: "/schoolEnrollmentCodeYear/listSchoolEnrollmentCodeYearBySchoolId",
        data: data,
    });
}


//根据学校ID获取分数
export function fetchSchoolEnrollmentPlanYearBySchoolId(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanYearBySchoolId",
        data: data,
    });
}


//根据学校ID获取学校专业列表
export function fetchListSchoolMajorBySchoolId(data) {
    return httpGet({
        url: "/schoolMajor/listSchoolMajorBySchoolId",
        data: data,
    });
}



//根据学校ID获取学校专业列表
export function fetchSchoolMajorList(data) {
    return httpGet({
        url: "/schoolMajor/listSchoolMajor",
        data: data,
    });
}


//根据学校专业ID获取学校专业详情
export function fetchMajorListSchoolMajorById(data) {
    return httpGet({
        url: "/schoolMajor/getSchoolMajorById",
        data: data,
    });
}


//根据学校专业ID获取学校专业详情
export function fetchSchoolEnrollmentPlanMajorBySchoolMajorId(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanMajorBySchoolMajorId",
        data: data,
    });
}




//根据专业ID获取学校专业列表
export function fetchSchoolMajorByMajorId(data) {
    return httpGet({
        url: "/schoolMajor/listSchoolMajorByMajorId",
        data: data,
    });
}



//获取对比学校
export function fetchSchoolListSchool(data) {
    return httpGet({
        url: "/zkxtSchool/listSchool",
        data: data,
    });
}




//获取对比学校
export function fetchListSchoolByIds(data) {
    return httpGet({
        url: "/zkxtSchool/listSchoolByIds",
        data: data,
    });
}





//用户收藏专业信息
export function fakeDeleteOrganizationUserCollectMajorById(data) {
    return httpPost({
        url: "/user/collectMajor/deleteOrganizationUserCollectMajorById",
        data: data,
    });
}



//用户取消收藏专业信息
export function fakeInsertOrganizationUserCollectMajorById(data) {
    return httpPost({
        url: "/user/collectMajor/insertOrganizationUserCollectMajor",
        data: data,
    });
}



//获取专业列表
export function fetchListMajor(data) {
    return httpGet({
        url: "/major/listMajor",
        data: data,
    });
}




//获取专业
export function fetchMajorDetail(data) {
    return httpGet({
        url: "/major/getMajorDetail",
        data: data,
    });
}



//获取关键词搜索的专业
export function fetchMajorByKeyword(data) {
    return httpGet({
        url: "/major/listMajorByKeyword",
        data: data,
    });
}



//获取用户收藏专业信息
export function fetchListOrganizationUserCollectMajorByOrganizationUserId(data) {
    return httpGet({
        url: "/user/collectMajor/listOrganizationUserCollectMajorByOrganizationUserId",
        data: data,
    });
}

//获取用户收藏学校信息
export function fetchListOrganizationUserCollectSchoolByOrganizationUserId(data) {
    return httpGet({
        url: "/user/collectSchool/listOrganizationUserCollectSchoolByOrganizationUserId",
        data: data,
    });
}




//根据关键字获取学校or专业信息
export function fetchListSchoolAndMajorByKeyword(data) {
    return httpGet({
        url: "/zkxtSchool/listSchoolAndMajorByKeyword",
        data: data,
    });
}



//省控线
export function fetchListBatchLineYear(data) {
    return httpGet({
        url: "/common/batchLine/listBatchLineYear",
        data: data,
    });
}


//获取省控线配置
export function fetchListBatchLineYearQueryConditionZkxt(data) {
    return httpGet({
        url: "/queryCriteria/getQueryConditionZkxt",
        data: data,
    });
}



// 招生计划按学校查询
export function fetchListSchoolEnrollmentPlanYearToSchoolPlan(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanYearToSchoolPlan",
        data: data,
    });
}

// 招生计划按专业查询
export function fetchListSchoolEnrollmentPlanYearToPlanName(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanYearToPlanName",
        data: data,
    });
}



// 招生计划按专业查询
export function fetchListSchoolEnrollmentPlanYearToPlanNameByPlanName(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanYearToPlanNameByPlanName",
        data: data,
    });
}


// 招生计划按专业查询
export function fetchListSchoolEnrollmentPlanYearToIntellectDetail(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanYearToIntellectDetail",
        data: data,
    });
}

// 获取学校排行列表
export function fetchListSchoolRank(data) {
    return httpGet({
        url: "/schoolRank/listSchoolRank",
        data: data,
    });
}


// 根据分数查询一分一段信息
export function fetchDivideIntoSectionByScore(data) {
    return httpGet({
        url: "/common/divideIntoSection/getDivideIntoSectionByScore",
        data: data,
    });
}



// 根据分数查询一分一段信息
export function fetchDivideIntoSection(data) {
    return httpGet({
        url: "/common/divideIntoSection/listDivideIntoSection",
        data: data,
    });
}




//全国报名人数
export function fetchNationalEnrollmentDataYear(data) {
    return httpGet({
        url: "/common/nationalEnrollment/listNationalEnrollmentDataYear",
        data: data,
    });
}


//历年各省选科人数
export function fetchListOptionalDataYear(data) {
    return httpGet({
        url: "/common/optional/listOptionalDataYear",
        data: data,
    });
}

//历年各省报名人数
export function fetchListEnrollmentDataYear(data) {
    return httpGet({
        url: "/common/enrollment/listEnrollmentDataYear",
        data: data,
    });
}



//按学校查询模拟志愿
export function fetchListSchoolEnrollmentCodeYearToCode(data) {
    return httpGet({
        url: "/schoolEnrollmentCodeYear/listSchoolEnrollmentCodeYearToCode",
        data: data,
    });
}

//按专业查询模拟志愿
export function fetchListSchoolEnrollmentPlanYearToPlan(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanYearToPlan",
        data: data,
    });
}

//根据招生代码获取历年招生计划列表-模拟志愿（按学校招生代码聚合）
export function fetchListSchoolEnrollmentPlanYearToCodeByCode(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanYearToCodeByCode",
        data: data,
    });
}


//获取用户高考信息
export function fetchOrganizationUserExamIntelOne(data) {
    return httpGet({
        url: "/user/examIntel/getOrganizationUserExamIntelOne",
        data: data,
    });
}
//保存用户志愿招生计划
export const fakeInsertOrganizationUserExamVolunteerPlan = (data) => {
    return httpPost({
        url: "/user/examVolunteerPlan/insertOrganizationUserExamVolunteerPlan",
        data: data,
    });
};


//获取用户高考信息
export function fetchOrganizationUserExamVolunteerPlan(data) {
    return httpGet({
        url: "/user/examVolunteer/listOrganizationUserExamVolunteerPlan",
        data: data,
    });
}


//根据招生代码-招生计划关联关系ID获取历年招生计划信息列表
export function fetchListSchoolEnrollmentPlanYearByCodePlanId(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanYearByCodePlanId",
        data: data,
    });
}


//获取志愿表
export function fetchListOrganizationUserExamVolunteerResult(data) {
    return httpGet({
        url: "/user/examVolunteer/listOrganizationUserExamVolunteerResult",
        data: data,
    });
}


//根据id获取详情
export function fetchOrganizationUserExamVolunteerResultById(data) {
    return httpGet({
        url: "/user/examVolunteer/getOrganizationUserExamVolunteerResultById",
        data: data,
    });
}

//新建表
export function fetchInsertOrganizationUserExamVolunteer(data) {
    return httpPost({
        url: "/user/examVolunteer/insertOrganizationUserExamVolunteer",
        data: data,
    });
}


//复制表
export function fetchCopyOrganizationUserExamVolunteerResultById(data) {
    return httpPost({
        url: "/user/examVolunteer/copyOrganizationUserExamVolunteerResultById",
        data: data,
    });
}



//修改标题
export function fetchUpdateOrganizationUserExamVolunteer(data) {
    return httpPost({
        url: "/user/examVolunteer/updateOrganizationUserExamVolunteer",
        data: data,
    });
}

//删除志愿
export function fakeDeleteOrganizationUserExamVolunteerPlanById(data) {
    return httpPost({
        url: "/user/examVolunteerPlan/deleteOrganizationUserExamVolunteerPlanById",
        data: data,
    });
}

//排序
export function fakeSortOrganizationUserExamVolunteerPlan(data) {
    return httpPost({
        url: "/user/examVolunteerPlan/sortOrganizationUserExamVolunteerPlan",
        data: data,
    });
}

//排序
export function fakeUpdateOrganizationUserExamVolunteerStatus(data) {
    return httpPost({
        url: "/user/examVolunteer/updateOrganizationUserExamVolunteerStatus",
        data: data,
    });
}



//根据条件查询招生计划-计划对比入口列表（按招生计划名称聚合）
export function fetchSchoolEnrollmentPlanYearByPlanNameGroup(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanYearByPlanNameGroup",
        data: data,
    });
}


//通过计划名称获取计划详情列表-计划对比
export function fetchListSchoolEnrollmentPlanYearToPlanNameContrast(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanYearToPlanNameContrast",
        data: data,
    });
}


export function fakeInsertOrSwitchOrganizationUserExamVolunteer(data) {
    return httpPost({
        url: "/user/examVolunteer/insertOrSwitchOrganizationUserExamVolunteer",
        data: data,
    });
}


//通过计划名称获取计划详情列表-计划对比
export function fetchGetDivideIntoSectionByUserScore(data) {
    return httpGet({
        url: "/common/divideIntoSection/getDivideIntoSectionByUserScore",
        data: data,
    });
}


export function fakeSetUserExamVolunteerDefault(data) {
    return httpPost({
        url: "/user/examVolunteer/setUserExamVolunteerDefault",
        data: data,
    });
}



//招生计划按专业查询
export function fetchListSchoolEnrollmentPlanYearToPlanNameForEnrollmentPlan(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanYearToPlanNameForEnrollmentPlan",
        data: data,
    });
}


//招生计划按学校查询
export function fetchListSchoolEnrollmentPlanYearToSchoolPlanForEnrollmentPlan(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanYearToSchoolPlanForEnrollmentPlan",
        data: data,
    });
}


//获取机构招考系统配置
export function fetchListZkxtCardConfigForUser(data) {
    return httpGet({
        url: "/zkxt/listZkxtCardConfigForUser",
        data: data,
    });
}


//获取我的会员卡记录
export function fetchListMyCardRecord(data) {
    return httpGet({
        url: "/zkxt/listMyCardRecord",
        data: data,
    });
}

export function fakeExportUserExamVolunteerPlanToPdf(data) {
    return httpPost({
        url: "/user/examVolunteer/exportUserExamVolunteerPlanToPdf",
        data: data,
    });
}

export function fakeEditUserInfo(data) {
    return httpPost({
        url: "/user/info/editUserInfo",
        data: data,
    });
}

//获取我的会员卡记录
export function fetchMyInfo(data) {
    return httpGet({
        url: "/user/info/getMyInfo",
        data: data,
    });
}




//根据条件查询历年学校招生代码信息-模拟志愿（按学校招生代码聚合）-查询无分数列表
export function fetchListSchoolEnrollmentCodeYearToCodeForNewYear(data) {
    return httpGet({
        url: "/schoolEnrollmentCodeYear/listSchoolEnrollmentCodeYearToCodeForNewYear",
        data: data,
    });
}

//根据招生代码获取历年招生计划列表-模拟志愿（按学校招生代码聚合）-查询无分数列表
export function fetchListSchoolEnrollmentPlanYearToCodeByCodeForNewYear(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanYearToCodeByCodeForNewYear",
        data: data,
    });
}

//根据条件查询历年学校招生计划信息-模拟志愿（按学校招生计划聚合）
export function fetchListSchoolEnrollmentPlanYearToPlanForNewYear(data) {
    return httpGet({
        url: "/schoolEnrollmentPlanYear/listSchoolEnrollmentPlanYearToPlanForNewYear",
        data: data,
    });
}


//根据条件查询历年学校招生计划信息-模拟志愿（按学校招生计划聚合）
export function fakeCheckFinalUserExamIntel(data) {
    return httpPost({
        url: "/user/examIntel/checkFinalUserExamIntel",
        data: data,
    });
}


//判断是否有历史垃圾数据
export function fakeCheckOldUserExamVolunteer(data) {
    return httpPost({
        url: "/user/examVolunteer/checkOldUserExamVolunteer",
        data: data,
    });
}
